package org.particlethink.handler;

import org.particlethink.entry.DeliverStatus;
import org.particlethink.entry.PlanStatus;


public class DeliverStatusHandler extends BaseEnumHandler<DeliverStatus> {
    public DeliverStatus fromCode(int code) {
        switch (code) {
            case 1:
                return DeliverStatus.UnChecked;
            case 2:
                return DeliverStatus.UnConfirmed;
            case 3:
                return DeliverStatus.Warehoused;
            case 4:
                return DeliverStatus.Reconciled;
            case 5:
                return DeliverStatus.Objection;
            case 6:
                return DeliverStatus.Discard;
        }
        return null;
    }
}
